package cn.blue.exception;
import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum GlobalExceptionCodeEnum {
    OK("成功","200"),
    ERROR("失败","-1"),
    SERVICE_REQUEST_FAILED("服务请求失败,请稍后重试！","-2"),
    PARAM_IS_NULL("参数不能为空","1001"),
    PHONE_IS_FORMAT_ERROR("手机号格式不正确，请重新输入！","1002"),
    PHONE_IS_NULL_ERROR("手机号不能为空！","1003"),
    GRAPHIC_CODE_IS_ERROR("图形验证码错误,请重试！","1004"),
    //user
    USER_CODE_BE_OVERDUE("验证码已过期，请重试！","2001"),
    USER_CODE_IS_ATYPISM("验证码不一致，请重试！","2002"),
    USER_PHONE_IS_EXISTS("手机以存在，请重试！","2003"),
    USER_IS_NOT_EXISTS("该用户不存你在，请重试","2004"),
    INVITATION_CODE_ISNOT_EXIST("该邀请码无效,请重新输入！","2004"),
    INVITATION_CODE_IS_BEUSE("该邀请码已被使用，请重新输入！","2005"),
    //course
    COURSE_NAME_IS_EXISTS("该课程名以存在！","3001"),
    COURSE_IS_NOT_EXISTS("该课程不存在！","3002"),
    COURSE_TYPE_IS_NOT_EXISTS("该课程类型不存在！","3003"),
    //black
    BLCAK_PHONE_IS_EXISTS("该手机号已被拉入黑名单,请联系管理员！","4001"),

    //房源
    HOUSE_IS_NOT_EXIST("该房源不存在，请稍后重试！","5001"),
    HOUSE_ONLINE_SUCCESS("上架成功!","5002"),
    HOUSE_LOWER_SHELF("下架成功!","5003"),

    //坐标点
    POINT_IS_NOT_EXIST("该坐标点不存在！","6000")
    ;
    private String message;
    private String errCode;
}
